home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14526 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: c scripts
  5. Date: 15 Apr 1996 08:33:29 -0700
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Distribution: inet
  8. Message-ID: <4ktq89INNsot@keats.ugrad.cs.ubc.ca>
  9. References: <4kpb1m$48n@news.ysu.edu> <4ktkd2$q0j@news1.cle.ab.com>
  10. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  11.  
  12. In article <4ktkd2$q0j@news1.cle.ab.com>,
  13. Donald-Anthony C. Phillips <don.phillips@ab.com> wrote:
  14. >aq271@yfn.ysu.edu (Matthew Buas) wrote:
  15. >
  16. >
  17. >>i am interesting in writing some simple scripts to handle
  18. >>information from HTML forms..i would like to write the
  19. >>scripts in C. any suggestions on what sites have some
  20. >>tutorials? what libraries do i need to download?
  21. >>help is appreciated
  22. >>matt
  23. >
  24. >I've done considerable CGI programming in C.  If you'd like some help
  25. >just e-mail me with some questions.  Are you familiar with CGI in
  26. >general?  NCSA has a good tutorial at 
  27. >
  28. >http://hoohoo.ncsa.uiuc.edu/cgi/intro.html
  29.  
  30. On my ISP, there is a C interpreter called ``ch''. I have no idea where it came
  31. from, but it takes some conforming ANSI C programs (I found through
  32. experimentation that it doesn't support function pointers).
  33.  
  34. A C program that uses only standard-conforming functionality and no function
  35. pointers (or other unsupported features that I'm not aware of), could be run as
  36. a CGI script with ``ch''.
  37.  
  38. You just change the source code to executable, and stick in the (non
  39. conforming!) #!/usr/bin/ch at the top.
  40.  
  41. The thing can be used interactively too, so it could be used as a teaching
  42. tool.
  43.  
  44. You can type "int x;" into it at the prompt, and then later do 
  45.  
  46.     printf("%p\n", (void *) &x);
  47.  
  48. and it actually works! :)
  49.  
  50. -- 
  51. I'm not really a jerk, but I play one on Usenet.
  52.